package com.qumitech.visualnovel.datasource.console;

import com.qumitech.visualnovel.model.dao.console.AccountDailyActive;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AccountDailyActiveMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AccountDailyActive record);

    int insertSelective(AccountDailyActive record);

    AccountDailyActive selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AccountDailyActive record);

    int updateByPrimaryKey(AccountDailyActive record);

    List<AccountDailyActive> getList(@Param(value = "userIds") List<Integer> userIds,
                                     @Param(value = "startTime") String startTime,
                                     @Param(value = "endTime") String endTime,
                                     @Param(value = "offset") int offset,
                                     @Param(value = "pageSize") int pageSize);

    int getCount(@Param(value = "userIds") List<Integer> userIds,
                 @Param(value = "startTime") String startTime,
                 @Param(value = "endTime") String endTime);
}